getTiles method