Preparation for Pathfinding revision

Added SetSelectedAgent function to Application Class, ideally
pathfinding should only be done when a new Agent is selected.