private static boolean handlePossibleMove(Board b, ArrayList<Move> moves, Move m, int opponentColor) {
		try {
			if (b.spaceHasOpponent(m.end, opponentColor)) {
				moves.add(m);
				return false;
			} else if (b.spaceIsEmpty(m.end)) {
				moves.add(m);
				return true;
			}
			return false;
		} catch (IndexOutOfBoundsException e) {
			return false;
		}
	}