Velocity reset when the box hits a border