What was boat A doing? I doubt anyone would protest someone trying to shoot the mark and getting stuck in irons. If it was a muffed tack, then boat A doesn't have any rights, however, it also doesn't have any steering if its not moving, and B should probably drive around.
Conclusion: Boat A needs more practice.