Fixed it

Added glutIdleFunc