added bare pieces-related functions file, began some movement-related function work