Finished off hooking up the very basic frontend to piece manipulation functions