Cleaned up levels.gen

- Removed some testing variables and fixed the areas those variables
affected.