Handle TCP messages, started implementing game logic.