Correcting variable name (bs -> battleState)