updated isValidMove
changed grader file.