Added drawRectangle function to global functions.
Changing stuff to how filed is drawn. Incomplete.