genetic algorithm on a lua game