Added prot of isValidMove