Changelog:
- The event listener initialization has been streamlined to reduce redundancy in the code.
- The
choose
method has been simplified to improve readability and maintainability. - The
startRank
method now directly sets theallowTies
state without spreading the entire state object. - The
undo
method has been refactored to useObject.assign
for updating the state, enhancing clarity. - The HTML structure remains unchanged, ensuring consistent user interface elements throughout the application.