fanctionalise drawRect()

drawRect is now a global fn() with _x,_y parameters