Good idea! But after I repeat the rhythm , the screen goes black and the game crashes
The ending sequence(screen goes dark, hear a bunch of creepy noises and crash) is initiated when the player misses the beat,
maybe you missed the beat? Try snapping the finger every time the flashlight goes out! ;)