Pseudo code and priority

pseudo code for negmax and building the priority queue.
test code for priority queue.