private static void playAgainstOpponentOnServer(int gameId, int color, int teamNumber, String secret) {
		PlayChess ourTeam = new PlayChess(color, gameId, teamNumber, secret);
		while (true) {
			System.out.println("POLLING AND MOVING FOR " + color);
			Response r = ourTeam.poll();
			System.out.println(r);
			if (ourTeam.board.gameIsOver()) {
				break;
			}
			if (r.ready) {
				if (r.lastmove != null && r.lastmove.length() > 0) {
					MoveHandler.handleMove(ourTeam.board, r);
				}
				Node nextNode = MiniMax.performMiniMax(ourTeam.board, ourTeam.color, PlayChess.plyLookhead, r);
				ourTeam.move(MoveHandler.convertMoveToServerNotation(ourTeam.board, nextNode.m));
				ourTeam.board.handleMove(nextNode.m);
			}
		}
	}