Validation function started
updated validation, rook and knight validation is complete