Autonomous Weapons System: Probing the Legality and Regulation