fix some errors counting moves on state and on simultation.