refactored DrawConsole to allow testing