draft implementation of moving the object with the mouse