Use toggle functions to avoid redundancy and add variables for playing tunes