debugged qlearning (and fixed bug in printboardq!!)