Update main.py

Added an exit(0) in dead()