Adding helper functions for drawing lines and squares