fixed bug, but now the first wall is missing (still better than before)