Moved code from idle function to glutTimer for performance reasons. My machine was getting way too
overloaded by the amount of computation in glutIdle