gravity packing finished, ugly code warning, simulator's coding style is super weird