in reply to Game.

If you are planning on using any HTML to display the game you could always put (a) hidden form field(s) in the document to pass any info you need from page to page.
print $query->start_form(-method=>$method,-action=>$action,-enctype=>$ +encoding); print $query->hidden(-name=>'hidden_name'); print $query->endform;
You should be able to use that code, with slight modification, to create filds that the user will never see. You can use then use
$value = $query->param('hidden_name');
to get the value back from the document after the user clicks on a submit button. You can get more info on this stuff in the perldoc.