working on the battle input function. error on line 52-64