Added new function to verify if there is a win.