added orientation functionality to Agent