checkwinner and checkwinner test added