added support for displaying messages to the player