fix input posistion, random movement

1.input posistion range set as bewtween 0~Row-1, 0~Col-1

2.line95 imove[7] is wronge, fixed it from 1 to -1