Update move_up_level()

Update the move_up_level() method to check for the number of remaining levels before recursing.