public int checkInBetweenHorizontal(int originLetter, int originNum, int newLetter, int newNum, Board b)
	{
		valid = 0;
		this.board = b;
		if(originLetter > newLetter)
		{
			int leftValid = 0;
			int horizontalLeftNum = originLetter;
			for(int counter = 0; counter < ((originLetter-newLetter)-1); counter++)
			{
				horizontalLeftNum = horizontalLeftNum - 1;
				if(b.checkBoard(originNum, horizontalLeftNum).matches(chessPieces))
				{
					System.out.println(error);
				}
				else
				{
					leftValid = 1;
				}
			}
			valid = leftValid;
		}
		else if(newLetter > originLetter)
		{
			int rightValid = 0;
			int horizontalRightNum = newNum;
			for(int counter = 0; counter < ((newLetter-originLetter)-1); counter++)
			{
				horizontalRightNum= horizontalRightNum + 1;
				if(b.checkBoard(originLetter,horizontalRightNum).matches(chessPieces))
				{
					System.out.println(error);
				}
				else
				{
					rightValid = 1;
				}
			}
			valid = rightValid;
		}
		return valid;
	}