Fixed null pointer exception on tile array