The game now resets when the sprite reaches the end cell.