update wall bouncing