int getShiftX(Tile otherTile) { if (this == otherTile) { return 0; } return this.tileX % 2 + 2 * getParent()!.getShiftX(otherTile); }