Switched from hashmap scoring matrix to array for speed