can now detect winner