use pointers to store Tiles in heap, fix crashes when adding tiles;