Moved text output to graphics.py