Throw the square, it will bounce.
I tried to make this as accurate as possible to real physics, its not perfect but works pretty well. All code by me with some help of ChatGPT because I could not figure out the rotating for the life of me. Made in 3 hours, straight.