Splitting KO chance functions into a separate file.

Also tweaked the multihit distribution squashing function, and added
logic for squashing a 39-length array which will be used for RBY/GSC.