validate moves