Refactored the CellFactory class by creating a new polygon class which handles all polygon related functionality (i.e. computing polygon area, centroid, max x coord, etc)