Simple sliding game solver. Trying to implement BFS
in JavaScript.