Devising clues that lead the audience towards solving the mystery, while still maintaining an element of surprise.