Voting system

This video may be of help. I’m sure you’re looking at a different implementation however the functionality would remain similar. I think he had another video where he shows how to resolve ties. Either way hope it’s of use.

Video In Question