Level generation

Added a factory for better level generation