Added getAllTiles (untested!)