change game algorithm
complete game algorithm