Revised Code

Changed method for creating maps and calculating transition probs