re-organised headers
re-organised headers
refactored and commented
variable declarations moved to the beginning of function
removed repetitive SDL_Init()
fixed randomizer problem