working on NextTiles.JS FLIPPING