game: fix var scope (refs #56)