code for changing levels is implemented

but not pretty yet