Changed textures, organized code

Changed the way the map is exported and also how textures are organized.
Tiles are given a proper texture depending on their position now