Changed SlopeType.java to an interface and made a factory for the different slope types