Add simple logic for stacking blocks