Wrote code to test for majority winner or all tied