Made box bounce back when hitting edge