refactor to use commonjs modules and work on navigation mesh