added win checking and double three checking