removed framework dependency from printing polygons, got rid of max_goal and almost got rid of max_energy