made updateLocked more sensible, began implementing a scoring function