A simple Java Program to solve a slider puzzle