Student ranked second in national chess competition