The game loops through ten levels, and after level ten goes back to level one. This happens forever until you die and/or get bored
When the tile graphics change that signifies the level changing.
However, for each of the ten levels, there are three different map designs for each one. Each time you move from one level to the next, one of those three designs is chosen at random. So in total there are actually thirty different levels.