Added console stub and started separating game logic from the program's main entry.