The maze is randomly generated, and you must find the exit before the next wave begins, or you'll be in trouble. At the end of the maze, you'll find resources to build new upgrades, such as turrets and more.