first commit with code fixed some issues with the drag function spacebar properlly calls a function