OpenGL implementation of simple tetris game