collisions while using moveto();?

Does anyone know a way i can do collisions while using the moveto(); funtion? It's for that rts game im making and i dont want "troops" to go inside eachother. It looks dumb and makes them hard to select just one 

Game Editor discussion board
http://game-editor.com/forum/
x=(5 mod(i))*width;
y=bottom(i/5)*height;