Move printGameState() to its own method