Changed how tiles are identified, made a map class to hold the tile map.