Improved if statements in menu.animation