Some modifications to the valid logic was made.

This was the Adam Brad logic from Sat morning.