Code for shooter.