typos and logic fixed
box moves smoothly!