fixed previous functions - need to attach fight function to click event