add js folder
and factory js file for all game
validation