fixed main function and GameLogic