rendering will happen in main

glutMainLoop(); call needs to be replaced by a timer or something.