Updated the behaviour of the agent if there is no object nearby