Implement text display utility functions and the prologue of MiniGame 4.1.