Removed math.h include from gfx.c, fixed return with no value and unused variable