Made the wall avoidance better for the opponents and put the wander orienation update code into its own function.