Thanks for playing the game and the feedback :)
The retreat line is actually for you. Once your units reach it, you can exit the battle. In the current state of the game it's not that useful sadly. My original idea was for the game to be a tactical retreat simulator(get all troops out with minimal losses), but I pivoted near the end due to lack of time.