support for terrain hashing and line-of-sight
cleaned up unit movement
fog of war bugfixing