Started working on updatePos. Not quite working yet.