Added some semblance of distance perception, starting to remove and clean unnecessary code.
Cleaned up code and restructured it. Removed many unnecessary fragments of code. Everything old has been deleted, I'll probably end up making a new directory with unnecessary fragments instead.