Clean engine.py by removing methods used for playing in the terminal, adjusting formatting, and deleting print statements.