goal scoring algo implemented