Added helper function to generate cartesian coordinate based on location. Refactored createTiles() to use it.
Added helper function to generate cartesian coordinate based on location. Refactored createTiles() to use it.

peonicles/slider-puzzle,peonicles/slider-puzzle