Modified getSides to properly grab values were otherwise resulting in incorrect calculations