Improved cube generation
minor optimization
Revert "minor optimization"

This reverts commit 7d2f86a31554b2f92fdefa4f241de786e8918216.
MAJOR reworking: using glfw/glew instead of sdl, removed some evil tabs