fixed flagbehaviour and added music