Overlord levelup solution

@jmmastey @bwthomas
`which_code` and `codeval` are kind of confusing names. For `codeval`, I think you should be okay just using `code`