fix algorithm for game sheduling