made move validation work properly