Fixed bugs in explore method of QLearnAgent; runs without error now