Fixed method that checks for winner