fixed error in pieces and added another validate move check