adds a brick class, change from using glut to freeglut