computing moves part 2
computing moves part 2