the main function implements for game application on each languages