Create cats_with_hats_alternative.py

I think the current cats_with_hats.py solution is not looking at the final cat, please accept this solution as an alternative.