Added methods to get green and red pins. Renamed the method to calculate them