Tiles positioning algorithm changed