corrected gamemanager script