Finished transition matrix
Removed testing code