For stand alone games, the basic game loop is (source: wikipedia)
while( user doesn\'t exit ) check for user input run AI move enemies resolve collisions
You can use almost the same thing, but the most of you logic would be on the server, you can put timers, sounds, grafics, and other UI components on the client app. Any business rule (AI,Movements) goes in the server side.