if statement: one will be changed to update_rays()
alpha_diff method
update_rays method