Updated the bouncing effect