fix shuffle function bug. Update level diagram.