Added some code to determine if we have a winner