public int checkMate() {
		// checks if in checkmate or if have checkmated;
		int checkmate = 0;
		Board b = new Board();
		Bobby BoardLords = new Bobby(true, b);
		ArrayList<ArrayList> a = BoardLords.getMoves();

		// check if we have been checkmated, checkmated = -1
		int index = -1;

		for (int x = 0; x < a.size(); x++) {
			if (a.get(x).toString().charAt(1) == ('K')) {
				index = x;
			}
		}

		if ((index != -1) && (a.get(index).size() == 2))
			return checkmate = -1;
		// if size of array containing kings moves is 2 (first index being 'K'
		// and second index being current
		// position and that is it then you're in checkmate (assumes king wont
		// have a possibleMove() of going into check)

		// check if we have checkmated opponent, checkmated opponent = 1
		Bobby opponentsPieces = new Bobby(false, b);
		ArrayList<ArrayList> opponents = opponentsPieces.getMoves();

		index = -1;

		for (int x = 0; x < opponents.size(); x++) {
			if (opponents.get(x).toString().charAt(1) == ('K')) {
				index = x;
			}
		}

		if ((index != -1) && (opponents.get(index).size() == 2))
			return checkmate = 1;
		// if size of array containing kings moves is 2 (first index being 'K'
		// and second index being current
		// position and that is it then you're in checkmate (assumes king wont
		// have a possibleMove() of going into check)

		return checkmate; // 0=not in checkmate
	}