refactor bsp
refactor scatter
refactor main
cellular automata refactor