Eight queens problem solving with Java