fixed one of the errors (tileGrid -> tileGrid[][]