Total rewrite. Doing it completely wrong I feel. Horrible errors on compile. Still working on it.