NQueens solution with GUI implementation using reflection to handle actions.