extended graphics object + added additional code for drawing maze