* basic.hs: Completed the isValidMeld function