Implemented cleaning of the generated map, now removes multiple nodes that were in a straight line and replaces them with just 2 connected nodes