fixed bug in gamemanager logic