void executePlayerCommand(PlayerCommand pc, int playerNumber)
  {
    int command = pc.command;
    Player p;
    if (playerNumber == 1)
      p = server.gameState.player1;
    else
      p = server.gameState.player2;


    switch (command)
    {
      case PlayerCommand.PRESS_RIGHT : p.run_right();
                                         break;
      case PlayerCommand.PRESS_LEFT : p.run_left();
                                        break;
      case PlayerCommand.PRESS_UP : {p.jump();}
                                      break;
      case PlayerCommand.RELEASE_RIGHT : p.stop_running_right();
                                          break;
      case PlayerCommand.RELEASE_LEFT : p.stop_running_left();
                                        break;
      case PlayerCommand.SHOOT : p.shoot();
                                  break;
    }


  }