Implemented Bresenhams line algorithm in gfx.c