bugfix: start with clean line/column buffers
bugfix: corrected end conditions for inner loops
center shape on screen