Global vars can not be avoided in games, at least in my point of view