Fixed bad logic in Tile