implement moveCount Flag Variable