Neuroevolution of Agents Capable of Reactive and Deliberative Behaviours in Novel and Dynamic Environments