Moving check for walls into separate module thingy