public boolean PieceNotInWay(int targetX, int targetY, boolean color,
			Board chessBoard, Game game) {
		int incrementX = 0, incrementY = 0;
		int curX = this.curX, curY = this.curY;

		if (targetX == this.curX) {
			if (targetY > this.curY) {
				incrementY = 1;
			} else {
				incrementY = -1;
			}
		} else if (targetY == this.curY) {
			if (targetX > this.curX) {
				incrementX = 1;
			} else {
				incrementX = -1;
			}
		}
		while (Math.abs(curX - targetX) > 0 && Math.abs(curY - targetY) > 0) {
			curX += incrementX;
			curY += incrementY;
			if (chessBoard.board[curX][curY].occupant.color == this.color) {
				return false;
			} else if (chessBoard.board[curX][curY].occupant.color != this.color) {
				game.movePieces(this, curX, curY);
				return false;
			}

		}
		return true;
	}