implemented isMoveValid in all chess pieces