added nut sound effect + refactored code