fixed bug with sometimes removing too much when removing walls