Refactored GameUI function declaration style