public void runControlServer()
	{
		try {
			controlServerSocket= new ServerSocket(controlDataSocketNumber);
			this.changeServerType();
			 while(true) 
			 {
				controlSocket = controlServerSocket.accept();
				controlInput = new ObjectInputStream(controlSocket.getInputStream());
				ClientMessage c = (ClientMessage) controlInput.readObject();
				System.out.println("Got client message with command: " + c.getCommand() );
				if(c.getCommand().equals("INVITE"))
				{
					if(!m.getHaveGame())
					{
						//Dont have a game, may accept or reject
						this.possibleOpponent = c.getUser();
						this.possiblePiece = c.getPiece() * -1;
						v.setInviteView(c.getUser().getUserName());
					}else
					{
						//Have a game already, automatically reject
						m.rejectInvite(c.getUser());
					}
				}else if(c.getCommand().equals("ACCEPT"))
				{
					//Accept invite request
					m.setIsTurn();
					m.setHaveGame();
					v.resetGameBoard();
					v.setGameStartMessage();
					System.out.println("Got accept back");
				}else if(c.getCommand().equals("REJECT"))
				{
					//Rejected invite
					v.setGameRejectedMessage();
				}
			 }
		} catch (IOException e) {
			e.printStackTrace();
			System.out.println("Could not start open P2P control socket on port 25201, exiting...");
			System.exit(-3);
		} catch (ClassNotFoundException e) {
			e.printStackTrace();
		}		 
	}