2d discrete box simulation using cinder