Sword logic