public void updatePosition(long timePassed) { double secs = timePassed / 1000.0; int dx = 0; for(int i=0; i