Java genetic algorithm to train a robot for a game called robocode