added bgm and preloading logic

added bgm and preloading logic