Fix game to render even with loss of focus