client: fix game logic and network stuff