public int checkSidwaysUp(int originLetter, int originNum, int newLetter, int newNum, Board b)
	{
		valid = 0;
		int diagnalUpLetter = originLetter;
		int diagnalUpNumber = originNum;
		
		if(originLetter > newLetter) //diagnal up left
		{
			int diagnalLeftValid = 0;
			for(int counter = 0; counter < ((originLetter-newLetter)-1); counter++)
			{
				diagnalUpLetter = diagnalUpLetter - 1;
				diagnalUpNumber = diagnalUpNumber - 1;
				if(b.checkBoard(diagnalUpLetter,diagnalUpNumber).matches(chessPieces))
				{
					System.out.println(error);
				}
				else
				{
					diagnalLeftValid = 1;
				}
			}
			valid = diagnalLeftValid;
		}
		else if(newLetter > originLetter) //diagnal up right
		{
			int diagnalRightValid = 0;
			for(int counter = 0; counter < ((newLetter-originLetter)-1);counter++)
			{
				diagnalUpLetter = diagnalUpLetter + 1;
				diagnalUpNumber = diagnalUpNumber - 1;
				if(b.checkBoard(diagnalUpLetter,diagnalUpNumber).matches(chessPieces))
				{
					System.out.println(error);
				}
				else
				{
					diagnalRightValid = 1;
				}
			}
			valid = diagnalRightValid;
		}
		return valid;
	}