This is a great way to encourage whole class, positive behaviour.
Decide what the class needs to work on. Once they exhibit that behaviour (walking quietly, submitting homework on time etc.), have a student pull a number out of a hat. The number they draw gets covered up. Once they cover a whole line or the whole board, the class can receive a reward.