Run StyleCop and changed the code according to the recommendations. Moved all logic from main method to class GameEngine.