Reset selected tile on destroy/place. Moved the tile selection to a function. Cleaned the map class.