added invert feature to follow sprites instead of avoid them
refactored adding nodes to open list, added check for tile map edges
tests for TileMap.findPath() added, findPath refactored and invert mode added.