moved game initialization logic to ApplicationMain class