updated adventure.py with class