Corrected tileset apply to top left corner of generated maps.
Initial swap_element() function implemented.