fix updateAfterInstr
fix updateAfterInstruction
add checking for updating cur position
Merge remote-tracking branch 'origin/fei2' into josias
Added new method to convert coordinates to grid, in a format friendly
for Android.