added scoreMatrix, still needs some work