AudioManager and revised the code form gamestate