validate_csquares function

Test if a csquares object is valid