combined frame.py's functionality into the Character class and reworked main.py and actions.py to work with the changes