here's a tutorial for a voting machine. you can vote for only one and it will notice if you try to vote twice.