Sometimes when booting up, the windows will overlap in a different order and the script will loop until timeout. Handle this case by comparing with two screenshots. Hard to repro, so might not do this.