Learning Behavior Trees with Genetic Programming in Unpredictable Environments