Refactored code, changed pixelcube rendering