small fixes, discrete next loc (commented)

code added for discrete next move selection.
Though commented out yet.