rename check_if_valid to check_if_optimal. validity check is something else
creating Population class