Observation.

1. Use and rewrite this demo.

2. Force is the cause of acceleration. To make Helium-filled balloon float, need  to add buoyancy of Helium.

3. bouncing off the top

Update position of balloon and checkEdges function.

Result

http://alpha.editor.p5js.org/Yen168/sketches/rkftnmP8z