Hey Keiwan did you see this another "game" ? this is working very well but the user interface is horrible, maybe it could help you with the bugs and the neural network...
https://miorsoft.github.io/Site/index.html