How to make a game ranking after the flash game is ended

as title