Java BDI agent to solve Blocks world problem