Changed a slight miscalculation in the Q table update.