Added collide function and changed pygame.sprite.spritecollide()