checks winning moves. Random start