N queens on NxN board game on C