fixed lots of found bugs, action selection fixed, q learning completed but does not work yet