Refactor positioning and pathing on the server