Implemented 'defend' function

This function makes the agent face the correct direction while defending
a point on the map.