Java console application outputs n x m chess board cell combinations to allocate k non-attacking figures (queens, kings, rooks, bishops, knights)