working neural network and genetic algorithm