attach game to window so that controller can use it