added a draggable text object
abstracted entities into a collection object
removed useless line
made entities have unique IDs and handle drag events