added win logic and alerts for cat's game/ x win & o win and clear button