import time
from ColorMatching import Matching
# Initialize the game
mygame = Matching()
# Start the game
mygame.refresh()
print("Game started. Entering main loop.")
# Main game loop
try:
while True:
time.sleep(0.1) # Small delay to avoid busy-waiting
# The button press handlers will be triggered by the Button class
print("Main loop iteration.") # Add a print statement to indicate the loop is running
except KeyboardInterrupt:
print("Game interrupted.")
finally:
# Clean up if necessary
pass