[Community Puzzle] Shadow Casting

In my opinion a shadow cant cast any shadow, so test 4 has a bug for me, but it mades me change my code a couples of times to pass it. I enjoyed it.