Did some cleanup in the code and changed some opengl functions beeing used in the obstacle creation.