Slightly refactored GameUi.