I'll have to refactor this code into GameServer later