game logic in tornadoServer.py