fix getCoord() method error in CPU moving