private boolean checkFlank(int x, int y, int xInc, int yInc, char player, char opponent){
		boolean flanking = false;
		
		while(true){
			x += xInc;
			y += yInc;
			
			if(x < 0 || x >= SIZE || y < 0 || y >= SIZE)
				return false;
			
			char space = board[x][y];
			if(space == '-')
				return false;
			else if(space == opponent)
				flanking = true;
			else if(space == player)
				return flanking;
		}
	}