Adding AStar controller to the N Puzzle UI
adjusting javafx threading model painting