Rewriting graphical part with OpenGL.