Fixes dragging only left right bug
Modularizes code into separate files.
Plan to use dragresize instead of dragging alone.
TODO: Refactor dragresize to also allow resize.
Dragging and resize now works!