Refactored the whole code. Added more abstraction
Created by: HighSaltLevels
What/Why
This code needed major refactoring. I added more abstraction (i.e. instead of having an array of weird values, have an array of SpaceValue objects). I also made necessary functions and variables private.