big changes, now every level in one frame, but there is a trouble in the code.