public void RecevePos(Point pos) { if (gameState == GameState.WaitOtherPlayerPos && programState == ProgramState.game) { // Handl pos here // compute status var status = fieldAlly.Shot(pos); // Send status otherPlayer.ReceveStatus(status); if (status == ShotStatus.miss) { setGameState(GameState.WaitPlayerChoise); } else if (status == ShotStatus.killEverybody) { MessageBox.Show("You lose!"); setProgramState(ProgramState.end); } else { setGameState(GameState.WaitOtherPlayerPos); } } }