added checking to see if ball is hitting shadow