Code Parity, Restructure, Linting, Dev-Mergable

Changed file structure for a future changes, cleaned up linting and refactored for code clarity.

The backend now reaches parity with the original functionality of the game and a merge was done with dev so that it is ready to be staged in dev.