Tile class functioning