Implemented a better way to move the tiles