All my algorithm for sport programming