This python code simulates critical mass as governed by the dimensions of a cube