stupid navmesh generation algorithm