moved game logic out of server.js