Added polygon member functions

also added a function to determine which box should be drawn for the
polygon