public Occupier checkAvailability(Location location) {
		Occupier toReturn = UNOCCUPIED;
		int x = location.getXCoordinate();
		int y = location.getYCoordinate();
		if (ChessBoard.onBoard(x, y)) {
			Location newL = chessBoard.getLocation(x, y);
			ChessPiece c = chessBoard.getChessPieceByLocation(newL);
			if (c == null) {
				toReturn = UNOCCUPIED;
			} else if (c.getAllegiance() == this.getAllegiance()) {
				toReturn = FRIEND;
			} else {
				toReturn = ENEMY;
			}
		}
		return toReturn;
	}