Fixed bug with ordering of tiles. The OS won't necessarily return them in order.
Merge pull request #1 from manuelmorales/master

Fixed bug with ordering of tiles