Updated BDIAgent to actually solve the problems given to it