N Queen puzzle implemented with Java Swing