add update game onresize