YJ- changed from PriorityQueue to LinkedList (much faster)
YJ- add/remove instead of offer/poll
YJ- conversion to stack on the way..
YJ- got rid of the prevMove shit
YJ- switched from PriorityQueue to LinkedList
YJ- minor changes
YJ- there's no more recusion now!
Merge branch 'stack' (manually resolved conflicts)