Refactoring of ConsoleGame and Frame classes