Fixed a bug in GetEmptyTiles where nonexistent tiles got added to the vector.