add test to cover backtracking
get rid of not needed backtrack matrix
slight speedup & test fix
remove unneeded line
refactoring score function
8% speed improvement
refactor scoring function
slight speed improvement