check three in a row