Tile is working, but does not produce correct results