Improved and optimized rendering

Some surfaces where being created, with using the SDL_DisplayFormat()
function on them. This means they weren't optimized. Adding this, made
the game run 15-20 times faster.

Added some new functions for initializing a surface and optimzing it
using the SDL_DisplayFormat function. Also added a few new helper
functions.