Added parameter to playFile function 
Now it's possible to pass 'loop' through parameter (no more hardcoded)