Refactor pathfinder into its own object

Move pathfinder functionality outside of a character object