Fixed platform independence
Fixed output and added TPS (time per second, average milliseconds to draw a frame over 1 second.)
Changed rendering code, preparing to switch to shaders