Added a sanity check on GetUsedTile in debug mode