Incorrect array reference in MapTile