Finding the probability of hitting a target