Added additional argument of SLD_Rect to handle_collisions function