IMPLEMENTED WALL LOGIC!!!