He's a character in a video game and the real player of the game has been restarting a level over and over again because he keeps getting stuck. Once the game has been completed there would be an ending of sorts, maybe a new game being played or the games console being turned off. Any thought processes and decisions made by the character could reflect what is going on in the game player's mind.