Refactored to front-end and back-end structure, plus it's starting to work and stuff