fixing 'bad-continuation'; simplifying battle.check_input