My try at handling objects and their physics on a canvas.