Modified Tile.cpp and tile.h