fix bug where building walls by dragging mouse breaks things