refactor sendGamestate to Game