Refactored the MajormudMainGame.MainGameTask