Created Game class to handle main functionality.

Now the game working flow is controled within Game class and code from the main.cpp was removed.