now it makes sure walls can't be diagonal