public boolean spaceHasOpponent(Position p, int opponentColor) {
		try {
			if (opponentColor == Board.white) {
				if (this.board[p.rank][p.file] > 0) {
					return true;
				}
			} else {
				if (this.board[p.rank][p.file] < 0) {
					return true;
				}
			}
			return false;
		} catch (Exception e) {
			return false;
		}
	}