prevent consecutive moves