added writeMessage method in consoleRenderer and copied start method in engine class