Added frame counter to reset the game when the music is over.