psuedocode game manager