withWindow tweaks; added runSubGame'