Hello

I am trying to display blocks on the screen, but it complete renders wrong.

This is my code: http://pastebin.com/DH5h4NXp

And the output is as following:
http://i.imgur.com/jv5xR.png...