Winning logic

Started the winning logic loop to check if the user won.