BattleFront

enqueue

Adds an element to the queue based on the priority of the
elements. The elements are ordered in ascending priority, from
lowest to highest. The priority is determined by using
Comparable's compareTo() method. Because this method modifies
the collection, and multiple threads can invoke it,
it is protected with the synchronized keyword.