Implemented polygon class. There may be a few bugs left but they'll have to wait