added minor edits to nextLevel()