Added percepts and functions for updating edge costs and node values