Minor Optimization

Discovered a starter file that was given and found out that I had
wasted a lot of time. I did optimize some of my functions based off of
what they gave us though.