Completed dragon.py