matrix scoring now works but test fails for correct penalty