refactor lock picks functions, add unit tests for populateMissedPicks