Abstracting function for rendering game messages.