protected int num_adjacent(HantoCoordinate location) {
		int count = 0;
		
		if(getPieceAt(new BasicCoordinate(location.getX(), location.getY() + 1)) != null) {
			count++;
		}
		if(getPieceAt(new BasicCoordinate(location.getX() + 1, location.getY())) != null) {
			count++;
		}
		if(getPieceAt(new BasicCoordinate(location.getX() + 1, location.getY() - 1)) != null) {
			count++;
		}
		if(getPieceAt(new BasicCoordinate(location.getX(), location.getY() - 1)) != null) {
			count++;
		}
		if(getPieceAt(new BasicCoordinate(location.getX() - 1, location.getY())) != null) {
			count++;
		}
		if(getPieceAt(new BasicCoordinate(location.getX() - 1, location.getY() + 1)) != null) {
			count++;
		}
		
		return count;
	}