used glut for game loop
fixed updating bug at initialization