Game plugin with leaderboard

i'm new to elgg and php. I don't know how to make a plugin.so i'm sharing an idea.

I think that an plugin that integrate mochimedia games can make a game plugin with leaderboard.

If this is an working idea make a plugin. I think that with this plugin admin can add many flash games from many devolepers all over the world. Pls make a plugin...