Fix unit movement with int