Implemented isSword method.