Adds logic for checking if a line is already blocked, and increase rating if block prevents losing
Adds better rating for open and block, and refactors open and block to use the same method for all lines