Pacman was designed to be a never-ending game. The variable that holds the level was only an 8-bit integer though, so at level 256, the game goes bonkers, and level 256 is impossible to beat.