Checking machine against challenge

No idea if this works