Directional light goes through meshes

I covered my entire hallway with 3 cubes to block the sunlight but it still go through. How do I fix this without turning off the directional light because I kind of need it in a certain places like on a 3rd Picture. Thankss!