added parity to takeshot function

added parity to random function and minor bug fixes to hunt_target