routine for current position updated, not working now
Merge branch 'master' of github.com:chris19891128/EECS394