Added unique id for every Sprite object

Added distance formula