q_learning appears to be working, need to fix the state array as i missed out 1 row and 1 column, after that the simulation it will need to be run for a long time to generate a policy