My galaxy collision code from last year