refactoring and new neural network player