game: fix var scope (refs #56)
game: fix incorrect console print
game: fix var scope (refs #56)