AVALANCHE: Move code from Menu to Graphics