add an id attribute for every moving object

This is helpful in the networked version