Java code for the implementation of genetic algorithm in solving for the N-Queens problem