Battle At the Border code