added functions to print char string
moved messages out of game function