added a lot of code. not working yet
optimal action code. not yet tested
fixed some bugs. This should hopefully work if we can now tackle the overfitting problem
fixed entropy log(0)