What are you trying to accomplish on line 13? attackerLoses is a function, so you can't compare it to a boolean. Just use the if statement you have on line 11.
The expression "attackerLoses == false" is similar to saying "&attackerLoses == false". It's taking the address of attackerLoses and comparing it to false (0). This will always be false since attackerLoses is a global function that's always defined.