create check(winning) method