Cleaned up confusion matrix code so the matrix would populate correctly when called.