added an animation to fade out the main menu

Will write a function to help with animations as evidenced in repeated code below.