feat:added collision detection
Added AABB Collision Detection with Pygame
Implemented AABB (Axis-Aligned Bounding Box) collision detection for two moving boxes. Boxes bounce back upon collision while a counter tracks the number of collisions (excluding wall bounces). Used Pygame for visualization and animation. Ensured PEP 8 compliance with proper import sorting. Added docstrings and structured comments for readability. Verified functionality through testing. Describe your change: [x] Add an algorithm? [ ] Fix a bug or typo in an existing algorithm? [ ] Add or change doctests? [ ] Documentation change?
Checklist: [x] I have read CONTRIBUTING.md. [x] This pull request is all my own work—no plagiarism. [x] I know that pull requests will not be merged if they fail automated tests. [x] This PR only changes one algorithm file. Separate PRs will be opened for other algorithms. [x] The new file is placed in an appropriate directory. [x] Filenames are in lowercase with no spaces or dashes. [x] Functions and variables follow Python naming conventions. [x] Type hints and docstrings are included for clarity. [x] The algorithm works as expected and follows best practices.