Made abstract factory for levelFactories and corrected some slight bugs