Organized, refactored, started implementing main state management and edge-building