Correct the code

sort game.https://ide.codingblocks.com/s/194085