Fixing Dominosa Algorithm

Serious fixes for serious problems. This is what I get for not testing
it properly.