Level class fully rewritten