syntax error createTiles instead of createTile