making headway on determining a winner, still bugs though