Input snapping and blocking controls and bugfix to walls