made logic for game to transition to the next level based on the setting of the nextlevel, playbutton, and rowspawner public variables