Bouncing ball demo in Rust