Mathematically correct bouncy | ScratchStats