switched game loop for menu loop