move IO stuff from Game to IO