added logic to display the character avatar in game.py