Need Help with Numeric Lock Screen

Good morning, I am making a numeric unlock screen like the iPhone one, and I can't get it to work. I need to be able to put in several wrong codes and have one that allows unlocking. While the top circles are filled with white and when they reach six they are empty, and back to square one.

Any ideas? It's for a movie and I can't figure it out....