changed some ugly code to use sdl-gfx drawing api isnetad