I really am an idiot. I broke a lot on changing tabs to spaces. I think my programming licence should be revoked.